#ifndef GLWIDGET_H
#define GLWIDGET_H
#include <QtOpenGL/QGLWidget>
#include <iostream>
#include <log4cxx/logger.h>

const double TRACKBALL_RADIUS = 0.6;

 class GLWidget : public QGLWidget
 {
     Q_OBJECT

public:
    GLWidget(QWidget *parent = NULL);

protected:
    void initializeGL();
    void resizeGL(int w, int h);
    void paintGL();
    void mousePressEvent(QMouseEvent *event);
    void mouseMoveEvent(QMouseEvent *event);
    void keyPressEvent(QKeyEvent *event);

 private:
	 static log4cxx::LoggerPtr m_log;
 };

 #endif